# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月20日
"""
from docx import Document
from docx.enum.table import WD_TABLE_ALIGNMENT # 导入表格对方式
from docx.shared import Cm # 导入单位转换函数


file = Document('./练习/练习5.docx')
table = file.tables[0]
table.alignment = WD_TABLE_ALIGNMENT.RIGHT

for col in table.columns:
	for cell in col.cells:
		cell.width = Cm(1)


file.save('./练习/11结果01.docx')

